package com.ruoyi.community.service.impl;

import com.ruoyi.common.constant.UserConstants;
import com.ruoyi.common.utils.StringUtils;
import com.ruoyi.community.domain.CmtDisPeople;
import com.ruoyi.community.mapper.CmtDiseaseMapper;
import com.ruoyi.community.service.ICmtDisPeopleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


import java.util.List;

@Service
public class CmtDisPeopleServiceImpl implements ICmtDisPeopleService {
    /**
     * 如果调用其他模块，注入service;
     */
    @Autowired
    private CmtDiseaseMapper cmtDiseaseMapper;

    @Override
    public List<CmtDisPeople> selectDisList(CmtDisPeople dis) {
        return cmtDiseaseMapper.selectDisList(dis);
    }

    @Override
    public int insertDis(CmtDisPeople dis) {
        return cmtDiseaseMapper.insertDis(dis);
    }




    /**
     * 修改保存当日疫情进出详细情况信息
     *
     * @param dis 当日疫情进出详细情况信息
     * @return 结果
     */
    @Override
    public int updateDis(CmtDisPeople dis) {
        return cmtDiseaseMapper.updateDis(dis);
    }


    /**
     * 通过当日疫情进出详细情况ID查询当日疫情进出详细情况信息
     *
     * @param disId 当日疫情进出详细情况ID
     * @return 角色对象信息
     */
    @Override
    public CmtDisPeople selectDisById(Long disId) {
        return cmtDiseaseMapper.selectDisById(disId);
    }


    /**
     * 删除当日疫情进出详细情况信息
     *
     * @param disId 当日疫情进出详细情况ID
     * @return 结果
     */
    @Override
    public int deleteDisById(Long disId) {
        return cmtDiseaseMapper.deleteDisById(disId);
    }


    /**
     * 批量删除当日疫情进出详细情况信息
     *
     * @param disIds 需要删除的当日疫情进出详细情况ID
     * @return 结果
     * @throws Exception 异常
     */
    @Override
    public int deleteDisByIds(Long[] disIds) {

        return cmtDiseaseMapper.deleteDisByIds(disIds);
    }

    @Override
    public List<CmtDisPeople> selectDisAll() {
        return cmtDiseaseMapper.selectDisAll();
    }


}
